package com.example.project.service;

import com.example.project.entity.UserInfoBean;
import com.example.utils.resultFormat.Result;
import org.springframework.stereotype.Service;

import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

@Service
public interface LoginService {

    /**
     * 注册用户
     */
    Result addUser(UserInfoBean user);
    /**
     * 登录用户
     */
    Result login(UserInfoBean user, HttpServletRequest request, ServletResponse response);

    void exitLogin(UserInfoBean user);
}
